<template>
  <view class="index-page" :style="{'background':kbackgroundColor}" style="min-height: 100vh">
	  <hx-navbar title="" :back="true" :fixed="false" :color="knavTitleColor" barPlaceholder="hidden"
	  		transparent="auto"></hx-navbar>
    <view class="page-content">
      <web-view :webview-styles="webviewStyles" :src="url"></web-view>
    </view>
  </view>
</template>

<script>
	import {
		baseUrl
	} from '@/config/config.js';
	import {
		goBack,
		jumpBackPage
	} from '@/config/mixins.js';
	export default {
		mixins: [goBack, jumpBackPage],
		data() {
			return {
				webviewStyles : {
				  progress: {
				    color: '#88C324',
				  },
				},
				url:''
			};
		},
		onLoad(options) {
			const param = JSON.parse(decodeURIComponent(options.param))
			console.log('参数'+JSON.stringify(param))
			console.log('连接'+JSON.stringify(param.url))
			
			this.url = param.url
		},
		methods: {
		},
	}
</script>

<style>
.index-page {
  height: 100vh;
  width: 100vw;
}
.page-content {
  flex: 1;
}
</style>
